var faker = require('faker/locale/zh_CN');
var lodash = require('lodash');
module.exports = function() {
  return {
    people: lodash.times(100, function(n) {
      return {
        id: n,
        key: n + 1,
        name: faker.name.findName(),
        avatar: faker.internet.avatar(),
        img: faker.image.image(),
        text: faker.lorem.text(),
        publishDate: faker.date.past(),
        star: faker.random.number()
      };
    }),
    hot: lodash.times(10, function(n) {
      return {
        id: n,
        name: faker.company.companyName(),
        img: faker.image.imageUrl(200, 200, 'people'),
        text: faker.lorem.text()
      };
    })
  };
};
